package com.ay277.htqoa.base.dao;

import java.io.Serializable;
import java.util.List;

/**
 * Created by accp09 on 2016/12/5.
 */
public interface Dao<E extends Serializable,PK extends Serializable> {
    void save(E entity);
    void update(E entity);
    void delete(E entity);
    E get(PK id);
    List<E> list();
}
